<!DOCTYPE html>
<html lang="zh-CN">





<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.ico">
  <link rel="icon" type="image/png" href="/img/favorite.ico">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="小九的日常笔记">
  <meta name="author" content="小九">
  <meta name="keywords" content="笔记，博客，前端，html，css，javascript，面试题，前端面试题">
  <title>Categories - 小九的书柜</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_yg9cfy8wd6.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->

  
<link rel="stylesheet" href="/css/my.css">



<!-- 
<link rel="stylesheet" href="/css/message.css">
 -->
<!-- 
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1117508_wxidm5ry7od.css">
 -->

  <script  src="/js/utils.js" ></script>
<meta name="generator" content="Hexo 4.2.1"></head>



<body>
  
  <div id="background">
    <!--  -->
    <header style="height: 60vh;">
      <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
      href="/">&nbsp;<strong>jLongYan's blog</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
      data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
      aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
        
        
        
        
        

        <li class="nav-item 1 " </li>
          <a class="nav-link 1 " href="/">
            <i class="iconfont icon-home-fill"></i>
            首页
          </a>
        </li>
        
        
        
        
        
        
        

        <li class="nav-item 1 " </li>
          <a class="nav-link 1 " href="/archives/">
            <i class="iconfont icon-archive-fill"></i>
            归档
          </a>
        </li>
        
        
        
        
        
        
        

        <li class="nav-item active " </li>
          <a class="nav-link active " href="/categories/">
            <i class="iconfont icon-category-fill"></i>
            分类
          </a>
        </li>
        
        
        
        
        
        
        

        <li class="nav-item 1 " </li>
          <a class="nav-link 1 " href="/tags/">
            <i class="iconfont icon-tags-fill"></i>
            标签
          </a>
        </li>
        
        
        
        
        
        
        

        <li class="nav-item 1 " </li>
          <a class="nav-link 1 " href="/links/">
            <i class="iconfont icon-link-fill"></i>
            友链
          </a>
        </li>
        
        
        
        
        
        
        

        <li class="nav-item 1 " </li>
          <a class="nav-link 1 " href="/about/">
            <i class="iconfont icon-user-fill"></i>
            关于
          </a>
        </li>
        
        
        
        <li class="nav-item" onclick="switchDarkMode()">
          <span id="dark"></span>
        </li>
        
      </ul>
    </div>
  </div>
</nav>
<style>
  .active {
    /* border-bottom: 1px solid #00FFFF; */
    color: #00FFFF !important;
  }
</style>

<script>
  var isNight = new Date().getHours() >= 22 || new Date().getHours() < 5; // 指定时间
  // 依次判断 系统暗黑模式 指定时间 缓存 dark
  if (matchMedia('(prefers-color-scheme: dark)').matches || isNight || localStorage.getItem('dark') === '1') {
    if (!(isNight && localStorage.getItem('noDark') === '1')) {
      document.body.classList.add('dark');
    }
  }
  //点击事件
  function switchDarkMode() {
    if ($('body').hasClass('dark')) {
      // checkWallaper()
      document.getElementById('dark').style.backgroundImage = 'url(/img/太阳.png)'
      document.body.classList.remove('dark');
      localStorage.setItem('noDark', '1');
      localStorage.setItem('dark', '0');
    } else {
      document.getElementById('dark').style.backgroundImage = 'url(/img/月亮.png)'
      document.body.classList.add('dark');
      localStorage.setItem('dark', '1');
      localStorage.setItem('noDark', '0');
      // checkWallaper()
    }
  }

</script>



      <!-- 如果需要采用配置文件的路径 在下面的div粘贴此段代码进去即可 目前采用的是 自定义的随机图片 -->
      <!-- style="background: url('/img/default.png') no-repeat center center;background-size: cover;" -->
      <div class="view intro-2" id="indexBackground" parallax=true
        style='background-size:cover'>
        <div class="full-bg-img">
          <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.1)">
            <div class="container text-center white-text fadeInUp">

              <span class="h2" id="subtitle">
                
              </span>

              <div id="yiyan" onclick="watchYiyan()">只有极其努力，才能看起来毫不费力。</div>

              


              
            </div>

            
          </div>
        </div>
      </div>
    </header>
    <!--  -->



    <main>
      
      <div class="container nopadding-md">
        <div class="py-5" id="board"
          >
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                







<div class="category-list">
  
  
  
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckdo3x1sr0011s72b3o6bbl5q" role="tab" data-toggle="collapse" href="#collapse-ckdo3x1sr0011s72b3o6bbl5q"
        aria-expanded="false"
      >
        javascript
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/javascript/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>4</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckdo3x1sr0011s72b3o6bbl5q" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckdo3x1sr0011s72b3o6bbl5q">
    
    
    
      
      
        <a href="/posts/6c6ef731.html" class="list-group-item list-group-item-action">
          <span class="category-post">Js检测数据类型的多种方法</span>
        </a>
      
    
      
      
        <a href="/posts/af017481.html" class="list-group-item list-group-item-action">
          <span class="category-post">深拷贝浅拷贝和赋值的原理及实现剖析</span>
        </a>
      
    
      
      
        <a href="/posts/7b91b8a9.html" class="list-group-item list-group-item-action">
          <span class="category-post">栈内存与堆内存的区别</span>
        </a>
      
    
      
      
        <a href="/posts/840b49ba.html" class="list-group-item list-group-item-action">
          <span class="category-post">event loop事件循环机制</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckdo3x1ss0017s72b1ldv7g7k" role="tab" data-toggle="collapse" href="#collapse-ckdo3x1ss0017s72b1ldv7g7k"
        aria-expanded="false"
      >
        主题优化
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/%E4%B8%BB%E9%A2%98%E4%BC%98%E5%8C%96/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>3</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckdo3x1ss0017s72b1ldv7g7k" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckdo3x1ss0017s72b1ldv7g7k">
    
    
    
      
      
        <a href="/posts/a87jnd.html" class="list-group-item list-group-item-action">
          <span class="category-post">主题扩展（网站统计量自定义）</span>
        </a>
      
    
      
      
        <a href="/posts/fe776346.html" class="list-group-item list-group-item-action">
          <span class="category-post">实现网站流量统计(前端埋点)</span>
        </a>
      
    
      
      
        <a href="/posts/a93f63ce.html" class="list-group-item list-group-item-action">
          <span class="category-post">Node实现随机壁纸API</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckdo3x1s90009s72b70bge4lw" role="tab" data-toggle="collapse" href="#collapse-ckdo3x1s90009s72b70bge4lw"
        aria-expanded="false"
      >
        css
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/css/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>2</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckdo3x1s90009s72b70bge4lw" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckdo3x1s90009s72b70bge4lw">
    
    
    
      
      
        <a href="/posts/7f8f311a.html" class="list-group-item list-group-item-action">
          <span class="category-post">神奇的grid布局</span>
        </a>
      
    
      
      
        <a href="/posts/160dac1d.html" class="list-group-item list-group-item-action">
          <span class="category-post">三栏布局的实现方法</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckdo3x1sl000ms72b51wq9jgu" role="tab" data-toggle="collapse" href="#collapse-ckdo3x1sl000ms72b51wq9jgu"
        aria-expanded="false"
      >
        vue
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/vue/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>1</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckdo3x1sl000ms72b51wq9jgu" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckdo3x1sl000ms72b51wq9jgu">
    
    
    
      
      
        <a href="/posts/83ea9fbc.html" class="list-group-item list-group-item-action">
          <span class="category-post">vue大纲总结</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckdo3x1sp000ws72beqmch0ek" role="tab" data-toggle="collapse" href="#collapse-ckdo3x1sp000ws72beqmch0ek"
        aria-expanded="false"
      >
        前端框架
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/%E5%89%8D%E7%AB%AF%E6%A1%86%E6%9E%B6/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>1</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckdo3x1sp000ws72beqmch0ek" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckdo3x1sp000ws72beqmch0ek">
    
    
    
      
      
        <a href="/posts/9jdls2.html" class="list-group-item list-group-item-action">
          <span class="category-post">vue与react的区别以及应用场景</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckf6o0b5t00010e2bhl7jf9bn" role="tab" data-toggle="collapse" href="#collapse-ckf6o0b5t00010e2bhl7jf9bn"
        aria-expanded="false"
      >
        node
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/node/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>1</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckf6o0b5t00010e2bhl7jf9bn" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckf6o0b5t00010e2bhl7jf9bn">
    
    
    
      
      
        <a href="/posts/840b59ba.html" class="list-group-item list-group-item-action">
          <span class="category-post">sequelize基础Api</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
    
    
    <div class="category row">
      <a
        class="category-item collapsed list-group-item category-item-action col-10 col-md-11"
        id="heading-ckf6obhfo000f0e2bagwhcrvb" role="tab" data-toggle="collapse" href="#collapse-ckf6obhfo000f0e2bagwhcrvb"
        aria-expanded="false"
      >
        ssr
        <i class="iconfont icon-arrowright"></i>
      </a>
      <a href="/categories/ssr/" class="category-count col-2 col-md-1">
        <i class="iconfont icon-articles"></i>
        <span>1</span>
      </a>
      <div class="category-collapse">
        
          
  <div id="collapse-ckf6obhfo000f0e2bagwhcrvb" class="collapse in" role="tabpanel"
       aria-labelledby="heading-ckf6obhfo000f0e2bagwhcrvb">
    
    
    
      
      
        <a href="/posts/840v59ba.html" class="list-group-item list-group-item-action">
          <span class="category-post">SSR的优缺点</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
</div>

              </div>
            </div>
          </div>
        </div>
      </div>
      
    </main>

    
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
    

    
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    

    

    <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <!-- <a  rel="nofollow noopener"><span class="motto">故事若不曲折怎么教人成长</span></a> -->

      <!-- <a rel="nofollow noopener"><span class="motto">xiaojiu</span></a> -->
      <!-- <i class="iconfont icon-love"></i> -->
      <a rel="nofollow noopener">

        <!-- <span class="motto"> 可惜故事太长只有风听我讲</span></a> -->
        
        <span class="motto"> 黄粱一梦、山水万重、人间总相逢</span></a>
        <!-- <span class="motto"> blog</span></a> -->

    </div>
    


    

    
    <div class="xiaojiu">
      <span id="xiaojiu_container_site_pv" style="display: none;">本站已经被访问- <span id="xiaojiu_value_site_pv"
          style="margin: 0 3px;"> </span> -次啦</span>
      <span id="xiaojiu_container_site_uv" style="display: none;">已经有- <span id="xiaojiu_value_site_uv"
          style="margin: 0 3px;"> </span> -个小伙伴来过啦</span>
    </div>


    <div class="date">
      <span id="timeDate">载入天数...</span>
      <span class="times" id="times">载入时分秒...
      </span>
      <img class="time" src="/img/sml.gif" srcset="/img/loading.gif" alt="">
      <script>
        var now = new Date();
        function createtime() {
          var grt = new Date("05/08/2018 00:00:00");//此处修改你的建站时间或者网站上线时间
          now.setTime(now.getTime() + 250);
          days = (now - grt) / 1000 / 60 / 60 / 24;
          dnum = Math.floor(days);
          hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
          hnum = Math.floor(hours);
          if (String(hnum).length == 1) {
            hnum = "0" + hnum;
          }
          minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
          mnum = Math.floor(minutes);
          if (String(mnum).length == 1) {
            mnum = "0" + mnum;
          }
          seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
          snum = Math.round(seconds);
          if (String(snum).length == 1) {
            snum = "0" + snum;
          }
          document.getElementById("timeDate").innerHTML = "本站已运行&nbsp" + dnum + "&nbsp天";
          document.getElementById("times").innerHTML = hnum + "&nbsp小时&nbsp" + mnum + "&nbsp分&nbsp" + snum + "&nbsp秒";
        }
        setInterval("createtime()", 250);
      </script>
    </div>
</footer>
<!-- <script src="https://api.lzwzw.cn/public/js/xiaojiu.js"></script> -->
<!-- <script src="/js/xiaojiu.js"></script> -->
<script src="/js/message.js"></script>

<style>
  .xiaojiu {
    margin-top: 14px !important;
    background-image: linear-gradient(135deg, deeppink, dodgerblue);
    font-weight: bold;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    -moz-box-decoration-break: clone;
    color: transparent;
    position: relative;
  }

  .date {
    background-image: linear-gradient(135deg, deeppink, dodgerblue);
    font-weight: bold;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    -moz-box-decoration-break: clone;
    color: transparent;
    position: relative;
  }
</style>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/lazyload.js" ></script>
  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/js/clipboard-use.js" ></script>









  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "分类页&nbsp;",
      ],
      cursorChar: "✨",
      typeSpeed: 80,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>





  <script  src="/js/local-search.js" ></script>
  <script>
    var path = "/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>









  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  



  <script>(function (i, s, o, g, r, a, m) {
      i['DaoVoiceObject'] = r;
      i[r] = i[r] ||
        function () {
          (i[r].q = i[r].q || []).push(arguments);
        };
      i[r].l = 1 * new Date();
      a = s.createElement(o);
      m = s.getElementsByTagName(o)[0];
      a.async = 1;
      a.src = g;
      a.charset = 'utf-8';
      m.parentNode.insertBefore(a, m);
    })(window, document, 'script', ('https:' === document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/2b2e276c.js", 'daovoice');
    daovoice('init', {
      app_id: "2b2e276c",
    });
    daovoice('update');
  </script>










  </div>
  
</body>

</html>
<script>

  // https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture
  // https://source.unsplash.com/random  速度慢  有图还不错
  //https://uploadbeta.com/api/pictures/random/?key=%E6%8E%A8%E5%A5%B3%E9%83%8E 随机女图
  // https://api.jlongyan.cn/api/paper/random
  function checkWallaper() {
    fetch('https://source.unsplash.com/random', {
      method: 'GET',
      mode: 'cors',
    })
      .then(res => {
        setWallaper(res.url)
        localStorage.setItem('blogWallaper',res.url)
        return res.json()
      })
      // .then(res => {
      //   console.log(res);
      //   console.log("%c随机背景图片接口开放%c，随机壁纸api详情见博客,%c小九---!", "color:red", "", "color:orange;font-weight:bold")
      //   setWallaper(res.data.CoverImg)
      //   localStorage.setItem('blogWallaper',res.data.CoverImg)
      // })
      .catch(console.error)
  }

  if(localStorage.getItem('blogWallaper')){
    setWallaper(localStorage.getItem('blogWallaper'))
  }else{
    checkWallaper()
  }

  //设置壁纸
  function setWallaper(url){
    document.getElementById('indexBackground').style.backgroundImage = "url(" + url + ")";
  }

  let timer = null
  //  检查dom是否存在当前页面  监听 
  function watchYiyan() {
    let dom = document.getElementById('yiyan')
    if (dom) {
      fetch('https://v1.hitokoto.cn')
        .then(response => response.json())
        .then(data => {
          dom.innerText = data.hitokoto
        })
        .catch(console.error)
      if (!timer) {
        clearTimeout(timer)
      }
    } else {
      timer = setTimeout(watchYiyan, 0)
    }
  }
  //  首次执行
  watchYiyan()

  setTimeout(() => {
    clearTimeout(timer)
  }, 200);


</script>
